package com.twh.www.service;

import com.twh.www.entity.WnUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;

/**
* @author 谭万豪
* @description 针对表【wn_user】的数据库操作Service
* @createDate 2025-04-24 21:56:03
*/
public interface WnUserService extends IService<WnUser> {
    WnUser login(String account, String password);
    WnUser getUserByAccount(String account);
    boolean register(WnUser user);
    boolean insertUser(String account, String password, String telphone, String email, MultipartFile avatar) throws IOException;
    String saveAvatar(MultipartFile file) throws IOException;
    boolean updateUserInfo(WnUser user);
}
